<form class="layui-form layui-col-md11" lay-filter="tpl_goods{$goods_sign}" action="{:url('Goods/saveData')}">
	<input type="hidden" name="goods_sign" class="layui-input" />
	<input type="hidden" name="goods_id" class="layui-input" />
	<input type="hidden" name="callet_juncai" value="1" />
	
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td width="33%">
		<div class="layui-form-item">
		<label class="layui-form-label">产品分类</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{if condition="$goods_data['callet_juncai'] EQ 1"}
			{$goods_data.category_name}
			{else /}
			默认分类
			{/if}
		</div>
	</div>
		</td>
      <td width="33%">
		<div class="layui-form-item">
		<label class="layui-form-label">品牌</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.jun_brand_name}
		</div>
	</div>
		</td>
		<td width="33%">

			</td>
    </tr>
    <tr>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">商品名称</label>
		<div class="layui-input-block layui-col-md8 margin-left0" style="line-height: 38px;">
			{$goods_data.goods_name}
		</div>
		<div class="layui-input-block layui-col-md8 margin-left0" style="display: none;">
			<input type="text" name="goods_name" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		 <td>
		<div class="layui-form-item">
		<label class="layui-form-label">型号</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
		    {if condition="$goods_data['sale_state'] EQ 1"}
	
		       <input type="text" name="goods_model" placeholder="{$goods_data.goods_model}" autocomplete="off" class="layui-input" disabled="disabled">
		    {else /}
			<input type="text" name="goods_model" placeholder="{$goods_data.goods_model}" autocomplete="off" class="layui-input">
			{/if}
		</div>
		
	</div>
		</td>
		<td width="33%">

			</td>
    </tr>
    <tr>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">军网编码</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.jun_id}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<input type="text" name="jun_id" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">商品编号</label>
		<div class="layui-input-inline" style="line-height: 38px;">
			{$goods_data.goods_sku}
		</div>
		<div class="layui-input-inline" style="display: none;">
			<input type="text" name="goods_sku" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td></td>
    </tr>
	{if condition="menuAuth('goods_esku')"}
	</tbody>
	<tbody>
		{else /}
		</tbody>
		<tbody style="display: none;">
		{/if}
    <tr>
      <td>
		  <div class="layui-form-item">
		<label class="layui-form-label">E编码</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="upc" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">E标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_son_name"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td>
			<div class="layui-form-item">
				<label class="layui-form-label">69码</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="code_69"  placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
		</td>
    </tr>
	<tr>
	  <td>
		<div class="layui-form-item">
		<label class="layui-form-label">快普编码</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_beizhu1" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
	  <td>
		<div class="layui-form-item">
		<label class="layui-form-label">快普品牌</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_beizhu2" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td>
			<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">字段3</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			
		</div>
	</div>
			</td>
	</tr>
        <tr>
      <td>
		  <div class="layui-form-item">
		<label class="layui-form-label">自营链接</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="ziying_url" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">自营编码</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="ziying_sku"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td></td>
    </tr>
    <tr>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">税务分类</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="product_area" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">税务分类编码</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="shuiwu_id" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td>
			<div class="layui-form-item">
		<label class="layui-form-label">税率</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			<input type="text" name="goods_keywords" value="0.13" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
			</td>
    </tr>
    <tr>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">发票标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="product_firm" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
      <td>
		<div class="layui-form-item">
		<label class="layui-form-label">发票规格型号</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="invoice_model" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
		</td>
		<td>
			<div class="layui-form-item">
		<label class="layui-form-label">商品单位</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_unit" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
			</td>
    </tr>

  </tbody>
</table>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">企业规模</label>
		<div class="layui-input-inline">
			<select name="guimo" lay-filter="goods_guimo_{$goods_sign}">
				<option value="99" selected="">其他</option>
				<option value="20">中型企业</option>
				<option value="50">小微企业</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">企业申明函地址</label>
		<div class="layui-input-inline">
			<input type="text" name="shenming" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	
	
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<textarea name="goods_intro" class="layui-textarea"></textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label" style="display: none;">商品封面<br /></label>
		<div class="layui-input-block"  style="display: none;">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<img src="{$goods_data.goods_picture.save_path}" style="width: 200px; height: 200px;" />
			</blockquote>
		</div>
		<div class="layui-input-block" style="display: none;">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list layui-upload-list-goods item_container" id="layui-upload-list{$goods_sign}">
					<ul>
						
					</ul>
				</div>
				<div class="layui-upload-drag goods_pictures_upload" id="goods_pictures_upload{$goods_sign}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">包装清单</label>
			<div class="layui-input-block layui-col-md8 margin-left0">
				<textarea name="packing_list" placeholder="包装项*数量" class="layui-textarea"></textarea>
			</div>
			<div>
			<div class="layui-form-mid layui-word-aux">每行一个包装清单 格式（包装项*数量）</div>
			</div>
		</div>
		
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">销售属性</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_attr{$goods_sign}">
					<div class="view_box"></div>
					<button type="button" id="sale_attr_pop_down{$goods_sign}" class="layui-btn layui-btn-normal layui-btn-sm"><i class="layui-icon layui-icon-add-1"></i>新增属性</button>
				</blockquote>
			</div>
		</div>
		
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">引用属性</label>
			<div class="layui-input-inline">
				<input type="checkbox" lay-text="是|否" lay-filter="quote_option" lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">商品属性</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm">
					{volist name="goods_data['goods_api_option']['param']" id="list"}
					<div>{$list.paramname}：{$list.paramvalue??''}</div>
					{/volist}
				</blockquote>
			</div>
			<div class="layui-input-block" style="display: none;">
				<blockquote class="layui-elem-quote layui-quote-nm" id="goods_attr{$goods_sign}">
					请先选择分类
				</blockquote>
			</div>
		</div>
		
		<div class="layui-form-item" {if condition="!in_array(MEMBER_ID,[193,207,494,217,452,203,202,10090,803,10431])"}style="display: none;"{/if}>
			<label class="layui-form-label">报价<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="site_data{$goods_sign}" data-title="分站价格"><i class="layui-icon layui-icon-snowflake"></i></a></label>
			<div class="layui-input-block">
		
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_spu{$goods_sign}">

				</blockquote>
				
			</div>
			
		</div>
		
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">品牌</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu14" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">品类</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu15" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
				<td>
					
			</div>
					</td>
		</tr>	
		<tr>
		  <td>
			<div class="layui-form-item">
				<label class="layui-form-label">供货价</label>
				<div class="layui-input-block layui-col-md8 margin-left0 ">
					 <input type="text" name="goods_beizhu3" placeholder="" autocomplete="off" class="layui-input">  
				</div>
			</div>
			</td>
		  <td>
			<div class="layui-form-item">
				<label class="layui-form-label">成本厂家/供应商</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu4" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
			</td>
			<td>
				<div class="layui-form-item">
					<label class="layui-form-label">快普物料名称</label>
					<div class="layui-input-block layui-col-md8 margin-left0">
						<input type="text" name="goods_beizhu5" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
				</td>
		</tr>
		<tr>
		  <td>
			<div class="layui-form-item">
				<label class="layui-form-label">保持价格</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu7" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
			</td>
		  <td></td>
			<td></td>
		</tr>
		</table>
		<div class="layui-form-item">
		<label class="layui-form-label">排序限价</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			 <input type="number" name="g_sale_price" id="money2" class="layui-input" autocomplete="off" class="layui-input">  
		</div>
	</div>
		<div class="layui-form-item">
		<label class="layui-form-label">排序报价</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			 <input type="number" name="g_api_price" id="money" class="layui-input" autocomplete="off" class="layui-input">  
		</div>
	</div>
	{if condition="menuAuth('goods_xqlock')"}
		<div class="layui-form-item">
			{else /}
			<div class="layui-form-item" style="display: none;">
			{/if}
    <label class="layui-form-label">是否锁定</label>
    <div class="layui-input-block">
  
    {if condition="$is_lock EQ '1'"}
      <input type="radio" name="is_lock" value="1" title="是" checked>
      <input type="radio" name="is_lock" value="2" title="否" >
      {else /}
      <input type="radio" name="is_lock" value="1" title="是">
      <input type="radio" name="is_lock" value="2" title="否" checked>
     {/if}
    </div>
  </div>
  <div class="layui-form-item">
	  <label class="layui-form-label">锁定原因</label>
	  <div class="layui-input-block layui-col-md8 margin-left0 ">
		  <input type="text" name="goods_beizhu6" placeholder="" autocomplete="off" class="layui-input">
	  </div>
  </div>
  
  
  <div class="layui-form-item">
    <label class="layui-form-label">限制省份</label>
    <div class="layui-input-block">
		{if condition="$check_area EQ 1"}
  <input type="radio" name="check_area" value="0" title="否" />
  <input type="radio" name="check_area" value="1" title="是" checked />
  {else /}
  <input type="radio" name="check_area" value="0" title="否" checked />
  <input type="radio" name="check_area" value="1" title="是"  />
  {/if}
    </div>
  </div>
  <div class="layui-form-item" style="display: none;">
  	<label class="layui-form-label">真实库存</label>
  	<div class="layui-input-block layui-col-md8 margin-left0 ">
  		 <input type="number" name="zhenshi" id="zhenshi" class="layui-input" autocomplete="off" class="layui-input">  
  	</div>
  </div>
		<div class="layui-form-item">
			{if condition="menuAuth('goods_baocun')"}
			<div class="layui-input-block">
				{else /}
				<div class="layui-input-block"  style="display: none;">
				{/if}
				<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_goods">提交报价</button>
				<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_goods_no_push">保存数据</button>
			</div>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="display: none;">
			<tr>
				  <td>
					<div class="layui-form-item" style="display:none;">
					<label class="layui-form-label">字段13</label>
					<div class="layui-input-block layui-col-md8 margin-left0 ">
						<input type="text" name="goods_beizhu13" placeholder="" autocomplete="off" class="layui-input">
					</div>
					</td>
				  <td>
					<div class="layui-form-item">
					<label class="layui-form-label">字段8</label>
					<div class="layui-input-block layui-col-md8 margin-left0">
						<input type="text" name="goods_beizhu8" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
					</td>
					<td>
						<div class="layui-form-item">
					<label class="layui-form-label">字段9</label>
					<div class="layui-input-block layui-col-md8 margin-left0 ">
						<input type="text" name="goods_beizhu9" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
						</td>
			</tr>
		<tr>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">字段10</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu10" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">字段11</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="goods_beizhu11" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
				<td>
					<div class="layui-form-item">
				<label class="layui-form-label">字段12</label>
				<div class="layui-input-block layui-col-md8 margin-left0 ">
					<input type="text" name="goods_beizhu12" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
					</td>
		</tr>
		<tr>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">金税编码</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="sale_specifications" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
			  <td>
				<div class="layui-form-item">
				<label class="layui-form-label">金税分类</label>
				<div class="layui-input-block layui-col-md8 margin-left0">
					<input type="text" name="standard_unit" placeholder="" autocomplete="off" class="layui-input">
				</div>
			</div>
				</td>
				<td>
					
			</div>
					</td>
		</tr>
		</table>
		<div class="layui-form-item">
			<label class="layui-form-label">详细信息</label>
			<div class="layui-input-block">
				<textarea name="goods_content" id="goods_content{$goods_sign}"></textarea>
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品重量</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="weight" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">单位：克</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">是否包邮</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_shopping" lay-text="是|否" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品类型</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_real" lay-text="实物|虚拟" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">是否需要安装</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_install" lay-text="需要|不需要" lay-skin="switch">
			</div>
		</div>
		
		
		<div class="layui-form-item" style="display: none;">
			<input type="hidden" name="last_sale_state" />
			<label class="layui-form-label">销售状态</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="sale_state" lay-text="销售|下架" checked lay-skin="switch">
			</div>
		</div>
		
</form>	
<script src="/static/ueditor/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/goods/drag.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var goods_sign = "{$goods_sign}";
	var goods_form_value = {$data};
	var category_select_uri = "{:url('Category/ajaxCategory')}";
	var brand_select_uri = "{:url('Brand/ajaxList')}";
	var attr_select_uri = "{:url('Attr/ajaxList')}";
	var sale_uri = "{:url('Sale/formTpl',array('goods_sign'=>$goods_sign))}";
	var um = UE.getEditor('goods_content{$goods_sign}');
	var chk_goods_model_uri = "{:url('Goods/chkModel')}";
	var goods_form_url = "{:url('goods/tplForm')}";
	var site_data_url = "{:url('goods/siteData')}";
	var push_neimeng_url = "{:url('goods/pushNeimengInfo')}";
	var push_qixin_url = "{:url('goods/pushQixinInfo')}";
	var push_zongyang_url = "{:url('@zyapi/api/product')}";
	var push_beijing_url = "{:url('@bjapi/api/product')}";
	var push_changshao_url = "{:url('@api/changsha/addGoods')}";
	um.ready(function(){
		if(goods_form_value.goods_content != undefined){
			um.setContent(goods_form_value.goods_content);
		}
	})
</script>

<script src="/static/js/goods/goods_jun_tpl.js" type="text/javascript" charset="utf-8"></script>
